std::basic_string::reserve
From Cppreference
< cpp | string | basic string
| void reserve( size_type size );
| ||
Sets the capacity of the string to at least size. New storage is allocated if necessary.
Contents |
Parameters
| size | - | new capacity of the string |
Return value
(none)
Complexity
linear in the size of the string
See also
| returns the number of characters that can be held in currently allocated storage (public member function) | |